<template>
    <div id="MyTable">
        <table border="1px">
            <tr>
                <th>序号</th>
                <th>姓名</th>
                <th>年龄</th>
                <th>性别</th>
                <th>操作</th>
            </tr>
            <tr v-for="(item, index) in list" :key="item.id">
                <td>{{ index + 1 }}</td>
                <td>{{ item.name }}</td>
                <td>{{ item.age }}</td>
                <td>{{ item.gender }}</td>
                <td>
                    <slot name="counijiwa" :id="item.id"></slot>
                </td>
            </tr>
        </table>
    </div>
</template>

<script>
export default {
    props: ['list']
}
</script>

<style></style>